import request from '@/utils/request';

/**
 * 查询高频交易列表
 * @param query
 * @returns {*}
 */

export const listHighFreqTradeThreshold = (query) => {
  return request({
    url: '/system/highFreqTradeThreshold/list',
    method: 'get',
    params: query
  });
};

/**
 * 查询高频交易详细
 * @param hfttId
 */
export const getHighFreqTradeThreshold = (hfttId) => {
  return request({
    url: '/system/highFreqTradeThreshold/' + hfttId,
    method: 'get'
  });
};

/**
 * 新增高频交易
 * @param data
 */
export const addHighFreqTradeThreshold = (data) => {
  return request({
    url: '/system/highFreqTradeThreshold',
    method: 'post',
    data: data
  });
};

/**
 * 修改高频交易
 * @param data
 */
export const updateHighFreqTradeThreshold = (data) => {
  return request({
    url: '/system/highFreqTradeThreshold',
    method: 'put',
    data: data
  });
};

/**
 * 删除高频交易
 * @param hfttId
 */
export const delHighFreqTradeThreshold = (hfttId) => {
  return request({
    url: '/system/highFreqTradeThreshold/' + hfttId,
    method: 'delete'
  });
};
